class WorkMenuData {
  String? title;
  String? iconCls;
  String? moduleName;
  int? listorder;

  List<SubMenusListBean>? subMenus;

  WorkMenuData({this.title, this.iconCls, this.moduleName, this.listorder, this.subMenus});

  WorkMenuData.fromJson(Map<String, dynamic> json) {    
    this.title = json['title'];
    this.iconCls = json['iconCls'];
    this.moduleName = json['moduleName'];
    this.listorder = json['listorder'];
    this.subMenus = (json['subMenus'] as List?)!=null?(json['subMenus'] as List).map((i) => SubMenusListBean.fromJson(i)).toList():null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    data['iconCls'] = this.iconCls;
    data['moduleName'] = this.moduleName;
    data['listorder'] = this.listorder;
    data['subMenus'] = this.subMenus != null?this.subMenus?.map((i) => i.toJson()).toList():null;
    return data;
  }

}

class SubMenusListBean {
  String? title;
  String? moduleName;
  num? count = 0;

  SubMenusListBean({this.title, this.moduleName});

  SubMenusListBean.fromJson(Map<String, dynamic> json) {    
    this.title = json['title'];
    this.moduleName = json['moduleName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    data['moduleName'] = this.moduleName;
    return data;
  }
}
